package cn.iocoder.yudao.module.system.controller.admin.appversion.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - App版本控制新增/修改 Request VO")
@Data
public class AppVersionSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8139")
    private Long id;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "公司ID", example = "11561")
    private Long deptId;

    @Schema(description = "平台", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "平台不能为空")
    private String platform;

    @Schema(description = "更新日志", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "更新日志不能为空")
    private String updateLog;

    @Schema(description = "版本名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "版本名称不能为空")
    private String versionName;

    @Schema(description = "内部版本号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "内部版本号不能为空")
    private Integer versionCode;

    @Schema(description = "发布时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发布时间不能为空")
    private LocalDateTime publishTime;

    @Schema(description = "支持最低版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "支持最低版本不能为空")
    private Integer minVersionCode;

    @Schema(description = "更新类型(1普通更新 2强制更新)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "更新类型(1普通更新 2强制更新)不能为空")
    private Integer updateType;

    @Schema(description = "下载地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "下载地址不能为空")
    private String downloadUrl;

}